<?php


namespace app\admin\model;


use think\Model;

/**
 * Class TaiheImgContent
 * @package app\admin\model
 * @desc 泰和-图片内容
 */
class TaiheImgContent extends BaseModel
{
    protected $table = 'eb_taihe_img_content';
    // 类型,xingukezhiyin-新顾客指引
    public $typeList = [
        'xingukezhiyin' => '新顾客指引',
    ];
    // 获取列表
    public function getList($where = [])
    {
        $list = self::where($where)->order('id desc')->select()->toArray();
        foreach ($list as &$v) {
            $v['pid_info'] = sprintf('%s-%s',$v['id'],$v['name']);
        }
        return $list;
    }
}